package com.rem.hutool.my7Collection;

import cn.hutool.core.map.MapUtil;

import java.util.Map;

/**
 * @author Rem
 * @date 2020-08-25
 */

public class MapUtilDemo {
    public static void main(String[] args) {

        Map<Object, Object> colorMap = MapUtil.of(new String[][]{
                {"RED", "#FF0000"},
                {"GREEN", "#00FF00"},
                {"BLUE", "#0000FF"}
        });

        boolean empty = MapUtil.isEmpty(colorMap);
        System.err.println(empty);

        //key  value 转换
        Map<Object, Object> reverse = MapUtil.reverse(colorMap);
        System.err.println(reverse);
    }
}
